package java_thinking.unit_10._10_7.Exercise;

/**
 * @Description : 放到接口中的任何类都自动的是public和static的！！！！
 * @author: cww
 * @DateTime: 2019-03-10 21:34
 */

interface E20 {
    void method();
    class Consumer implements E20 {

        @Override
        public void method() {
            System.out.println("Consumer");
        }
    }
}
class E20Consumer implements E20{

    @Override
    public void method() {

    }
}

class E20_1{
    public static void main(String[] args) {
        E20Consumer e20Consumer = new E20Consumer();
        E20.Consumer consumer = new E20.Consumer();
        consumer.method();
    }
}
